package com.hbx.residential_service.service;

import com.hbx.residential_service.domain.*;

import java.util.List;

public interface UserService {
    List<User> findAll(int page, int size) throws Exception;

    User userLogin(String username, String userpwd)throws Exception;

    List<Complaint> userFindCp(String username, int page, int size);

    List<Repair> userFindRp(String username, int page, int size);

    List<Notice> FindNewNt();

    List<House> userFindHs(String username);

    List<CarSite> userFindCs(String username);

    List<Pay> userFindPy(String username);

    String getUserSex(String username);

    void addCp(Complaint complaint);

    User findByUserName(String username);

    void addRp(Repair repair);

    List<Pay> findNoPay(String username);

    Pay findPayById(int payId);

    void UpdatePay(Pay pay);

    void userRegister(User user);

    void UpdatePwd(User user);

    User findUpdHouseById(int userid);

    void UpdateById(User user);

    List<User> fsByUsername(String content, int page, int size);
}
